package com.web.callcenter.supplement;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import org.springframework.jdbc.core.PreparedStatementCreator;

/**
 * PreparedStatementCreator
 */
public class PstmtCreator implements PreparedStatementCreator {

	private String sqlStr = "";
	
	public void setSQL(String sqlStr) {
		this.sqlStr = sqlStr;
	}
	
	public PreparedStatement createPreparedStatement(Connection connection)
			throws SQLException {
		PreparedStatement pst = connection.prepareStatement(sqlStr);
		return pst;
	}
}